<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>

		<script type="text/javascript">
			function handleResponse(response) {
				//console.log('The responsed data is: ' + response.data);
				response.data;
			}
			window.baidu = {
			  sug: function(data){
			    console.log(data.status);
			  }
			}
			function funscr2() {
				var script = document.createElement('script');
				script.src = 'http://suggestion.baidu.com/su?callback=handleResponse';
				var head = document.head || document.getElementByTagName('head')[0];
				head.insertBefore(script, 0);
			}
		</script>
	</head>
	<body>
			<button onclick="funscr2()">请求并获取返回结果 jquery</button><br>
	</body>
</html>
